<template>
	<view>
		<view class="box" v-for="(item,index) in data" :key="index">
			<view class="box-top">
				<view class="top-title">
					ID: {{item.code}}
				</view>
				<view class="top-time">
					{{item.create_time}}
				</view>
			</view>
			<view class="bottom-box">
				<view class="bot-title">
					{{item.text}}
				</view>
				<view class="bot-money">
					<text style="color: black;">变动金额</text>: {{item.money}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:''
			}
		},
		onLoad() {
		
		},
		onShow() {
			this.$u.api.shop.GetQuanInfo().then(res =>{
				console.log(res);
				if(res.code == 200){
					this.data = res.data
				}
			})
		},
		methods:{
			copy(value){
				uni.setClipboardData({
				 	    data: value,
				    	success: function () {
				    	//调用方法成功
				        console.log('success');
				    }
				 	})
			}
		}
	}
</script>

<style>
	.box{
		width: 690rpx;
		height: 220rpx;
		margin-left: 30rpx;
		margin-top: 20rpx;
		background-color: white;
		border-radius: 16rpx;
	}
	.box-top{
		width: 100%;
		height: 82rpx;
		border-bottom: 2rpx dotted #EEEEEE;
		display: flex;
		justify-content: center;
		
	}
	.top-title{
		height: 82rpx;
		width: 400rpx;
		/* margin-left: 30rpx; */
		line-height: 82rpx;
		font-size: 28rpx;
		color: #848590;
		font-family: PingFang SC-Medium;
		font-weight: Medium;
	}
	.top-time{
		height: 82rpx;
		/* width: 200rpx; */
		/* margin-left: 30rpx; */
		line-height: 82rpx;
		font-size: 28rpx;
		color: #848590;
		font-family: D-DIN-Regular;
		font-weight: Regular;
	}
	.bottom-box{
		width: 600rpx;
		height: 98rpx;
		margin-left: 30rpx;
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}
	.bot-title{
		width: 100%;
		font-size: 28rpx;
		color: #333333;
		font-family: PingFang SC-Medium;
		font-weight: Medium;
	}
	.bot-money{
		width: 100%;
		font-size: 24rpx;
		font-family: PingFang SC-Medium;
		font-weight: Medium;
	}
	
</style>